package object_oniented;

public class Encapsulation {
   private String nane;
   private int age;
   String address;
   public int salary;

   public Encapsulation() {
   }
   public Encapsulation(String nane, int age, String address, int salary) {
       this.nane = nane;
       this.age = age;
       this.address = address;
       this.salary = salary;
   }
   public String getNane() {
       return nane;
   }
   public void setNane(String nane) {
       this.nane = nane;
   }
   public int getAge() {
       return age;
   }
   public void setAge(int age) {
       this.age = age;
   }
   public String getAddress() {
       return address;
   }
   public void setAddress(String address) {
       this.address = address;
   }
   public int getSalary() {
       return salary;
   }
   public void setSalary(int salary) {
       this.salary = salary;
   }

}
